]> dgit.raspbian.org Git - gnome-shell.git/commit
tray/na-xembed: Destroy socket window when ending the embedding
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Wed, 1 May 2024 03:56:48 +0000 (05:56 +0200)
committerSimon McVittie <smcv@debian.org>
Fri, 8 Aug 2025 08:19:26 +0000 (09:19 +0100)
commitfa9dc9ff94600b30accdd75541bce2f5c09254fc
tree3b9401b05b5205a0e1c360ccba30d10bf9d61518
parentf4dbe6f5209d3a165cf448c82c766b483e06a247
tray/na-xembed: Destroy socket window when ending the embedding

Currently when embedding a tray icon is ended we are leaving the X11
socket window around as we don't really destroy it, while we're just
listening for its child destruction.

So, when embedding is ending we need to make sure that:
 - If the plug window is still alive, move it back to its old parent
   (normally that's the root window, but we query for it, to be sure)
 - If the plug window has been already destroyed or reparented (by us or
   by something else), we've to just destroy the socket window

Origin: https://gitlab.gnome.org/3v1n0/gnome-shell/-/commits/tray-offscreen-xwindows
Bug: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7614
Bug-Ubuntu: https://bugs.launchpad.net/bugs/2012388

Gbp-Pq: Topic tray-icons
Gbp-Pq: Name tray-na-xembed-Destroy-socket-window-when-ending-the-embe.patch
src/tray/na-xembed.c